from rest_framework.viewsets import ModelViewSet
from app.models import StudentModel,ClsModel
from app.ser import StudentSeria,ClsSeria
class StuModelView(ModelViewSet):
    queryset = StudentModel.objects.all()
    serializer_class = StudentSeria
    lookup_field = 'pk'
    lookup_url_kwarg = 'id'